package com.vframework.system.user.model;

import java.util.Date;
import java.util.List;

import com.util.UploadUtil;
import com.vframework.base.model.Entity;
import com.vframework.system.role.model.RoleBean;

public class UserBean extends Entity {
	/**
	 * 保存到session必须序列化
	 */
	private static final long serialVersionUID = 8985675818645729662L;
	
	private String userName = null;//用户姓名
	
	private String headImg = null; //用户头像
	
	private String headImgPath = null;
	
	private String headImgPathShow = null;
	
	private String userId = null;//用户标识
	
	private String password = null;//用户密码
	
	private String makeSurePassword = null; // 确认密码
	
	private String oldPassword = null;//用户原密码
	
	private Date   loginTime = null;//登录时间
	
	private String ip = null;//登录IP
	
	private String sex ;//性别
	
	private String mobile = null;//手机号
	
	private String tel = null;//座机号
	
	private String email = null;//Email
	
	private String post = null;//邮编
	
	private String orgId = null;//机构编码

	private String porgId = null;//父级机构编码
	
	private String orgName = null;//机构名称
	
	private String orgType = null;//机构类型
	
	private String orgLevel = null;//机构级别
	
	private String status;//用户状态 0正常 1停用
	
	private String statusName;
	
	private String account;//用户账号
	
	private String cityCodeCascade;//级联城市代码
	
	private String cityNameCascade;//级联城市名称
	
	private String cityCode;//管辖地市
	
	private String cityName;//管辖地市
	
	private String countyCode;//管辖区域
	
	private String countyName;//管辖区域
	
	private String cardNum;//员工卡号
	
	private String operator;//操作人
	
	private String opdate;//操作时间
	
	private String roleNames = null;//角色名称集合
	
	private String oldAccount = null;//旧账号
	
	private String[] roleIds = null;//角色id集合
	
	private List<String> roleIdsList;
	
	private List<RoleBean> roleSet = null;//角色对象

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public String getHeadImgPath() {
        return headImgPath;
    }

    public void setHeadImgPath(String headImgPath) {
        this.headImgPath = headImgPath;
    }

    public String getHeadImgPathShow() {
        return UploadUtil.replacePath(headImgPath);
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMakeSurePassword() {
        return makeSurePassword;
    }

    public void setMakeSurePassword(String makeSurePassword) {
        this.makeSurePassword = makeSurePassword;
    }

    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getPorgId() {
        return porgId;
    }

    public void setPorgId(String porgId) {
        this.porgId = porgId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getOrgType() {
        return orgType;
    }

    public void setOrgType(String orgType) {
        this.orgType = orgType;
    }

    public String getOrgLevel() {
        return orgLevel;
    }

    public void setOrgLevel(String orgLevel) {
        this.orgLevel = orgLevel;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
        if("1".equals(status)){
            this.statusName = "正常";
        }else if("0".equals(status)){
            this.statusName = "暂停";
        }
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getCityCodeCascade() {
        return cityCodeCascade;
    }

    public void setCityCodeCascade(String cityCodeCascade) {
        this.cityCodeCascade = cityCodeCascade;
    }

    public String getCityNameCascade() {
        return cityNameCascade;
    }

    public void setCityNameCascade(String cityNameCascade) {
        this.cityNameCascade = cityNameCascade;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCountyCode() {
        return countyCode;
    }

    public void setCountyCode(String countyCode) {
        this.countyCode = countyCode;
    }

    public String getCountyName() {
        return countyName;
    }

    public void setCountyName(String countyName) {
        this.countyName = countyName;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getOpdate() {
        return opdate;
    }

    public void setOpdate(String opdate) {
        this.opdate = opdate;
    }

    public String getRoleNames() {
        return roleNames;
    }

    public void setRoleNames(String roleNames) {
        this.roleNames = roleNames;
    }

    public String getOldAccount() {
        return oldAccount;
    }

    public void setOldAccount(String oldAccount) {
        this.oldAccount = oldAccount;
    }

    public String[] getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(String[] roleIds) {
        this.roleIds = roleIds;
    }

    public List<String> getRoleIdsList() {
        return roleIdsList;
    }

    public void setRoleIdsList(List<String> roleIdsList) {
        this.roleIdsList = roleIdsList;
    }

    public List<RoleBean> getRoleSet() {
        return roleSet;
    }

    public void setRoleSet(List<RoleBean> roleSet) {
        this.roleSet = roleSet;
    }
}